/*package com.rykj.qxj.rest;

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestParam;

import com.rykj.qxj.server.model.entity.ApiRequestParam;
import com.rykj.qxj.server.services.ApiRequestParamService;
import com.rykj.qxj.util.Result;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j;

@Log4j
@RestController
@RequestMapping("/v1/apiManage/requestParam")
@Api(tags="开发者中心-API管理")
public class ApiRequestParamController {
	
	@Autowired
	private ApiRequestParamService apiRequestParamService;
	
	@PostMapping("/save")
    @ApiOperation(value="保存请求参数",notes ="保存请求参数")
    public Result save(@RequestBody List<ApiRequestParam> apiRequestParamList){
		if(apiRequestParamList==null ||apiRequestParamList.size()<0) {
			return Result.failure("数据格式错误,请检查");
		}
        try{
        	apiRequestParamService.saveRequestParam(apiRequestParamList);
            return new Result(true,"保存成功");
        }catch (Exception e){
            log.error("保存失败", e);
            return new Result(false, "保存失败");
        }
    }
	@DeleteMapping("/delete")
	@ApiOperation(value="删除请求参数信息",notes ="删除请求参数信息")
	@ApiImplicitParams({
         @ApiImplicitParam(name = "id", value = "请求参数id主键",required = true,paramType = "query")
	})
	public Result delete(@RequestParam Integer id){
		if(null==id) {
			return Result.failure("删除信息时,id不能为空");
		}
		try{
			apiRequestParamService.deleteRequestParam(id);
			return new Result(true,"删除成功");
		}catch (Exception e){
			log.error("保存失败", e);
			return new Result(false, "删除失败");
		}
	}
}
*/